<?php $_TPL['title'][]='编辑公司'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <title><?php if(is_array($_TPL['title'])) { foreach($_TPL['title'] as $title) { ?> <?php echo $title ;?> - <?php } } ?>对话中国</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <script type="text/javascript" src="include/js/jquery-1.4.4.min.js"></script>
        <script type="text/javascript" src="include/js/common.js"></script>
        <script type="text/javascript" src="include/js/header.js"></script>
        <style type="text/css">
            @import url(template/default/style.css);
        </style>
    </head>
    <body>
        <div id="warp">
            <div id="header">
                <div id="header_top">
                    <div class="left"><img src="template/default/image/bg_corner_top.gif"/></div>
                    <div class="right">
                        <?php if($_SGLOBAL['supe_uid']) { ?>
                        <div id="header_login">
                            <a href="#">退出</a>
                        </div>
                        <div id="header_nav">
                            <ul>
                                <li id="nav_company"><a href="setup.php?ac=company"><img src="template/default/image/b_manage.gif" /></a></li>
                                <li id="nav_interface"><img src="template/default/image/b_interface.gif" /></li>
                                <li id="nav_support"><img src="template/default/image/b_profile.gif" /></li>
                                <li id="nav_session"><img src="template/default/image/b_sessions.gif" /></li>
                                <li id="nav_prefs"><a href="setup.php?ac=profile"><img src="template/default/image/b_prefs-over.gif" /></a></li>
                            </ul>
                            <div class="clear"></div>
                        </div>
                        <?php } ?>
                    </div>
                    <div class="clear"></div>
                </div>
                <div id="header_bottom">
                    <div class="left">
                        <a href="">::首页</a>
                    </div>
                    <div class="header_bottom_bg_menu">&nbsp;</div>
                    <div class="right">
                        <?php if($_SGLOBAL['supe_uid']) { ?>
                        <div id="header_submenu">
                            <div <?php echo $submenu['none'] ;?>>
                                欢迎管理dialogcn的管理员区域
                            </div>
                            <div <?php echo $submenu['prefs'] ;?> id="submenu_prefs">
                                <a href="setup.php?ac=email">邮件模板</a>
                                <a href="setup.php?ac=global">全局设置</a>
                            </div>
                            <div <?php echo $submenu['support'] ;?> id="submenu_support">
                                <a href="setup.php?ac=support&op=add">添加客服人员</a>
                            </div>
                            <div <?php echo $submenu['session'] ;?> id="submenu_session">
                                <a href="#">当前回话</a>
                                <a href="#">当前回话</a>
                            </div>
                            <div <?php echo $submenu['interface'] ;?> id="submenu_interface">
                                <a href="#">主题</a>
                                <a href="#">图标</a>
                            </div>
                            <div <?php echo $submenu['company'] ;?> id="submenu_company">
                                <a href="setup.php?ac=company&op=list">公司列表</a>
                                <a href="setup.php?ac=company&op=add">添加公司</a>
                                <a href="setup.php?ac=company&op=search">搜索公司</a>
                            </div>
                        </div>
                        <?php } ?>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
<script type="text/javascript" src="include/js/city.js"></script>
<div id="content" class="setup_func_list">
    <h5>编辑公司：</h5>
    <ul class="form_description_ul">
        <li>当网站有新动态，过年过节的时候会发邮件到该公司邮箱</li>
        <li>请填写正确的公司网址，否则无法使用</li>
    </ul>
    <form id="editform" action="setup.php?ac=<?php echo $ac ;?>&op=edit&cid=<?php echo $company['cid'] ;?>" method="post">
        <input type="hidden" name="formhash" value="<?php echo Utils::formhash(); ?>"/>
        <input type="hidden" name="editsubmit" value="true"/>
        <table class="form_table" cellpadding="0" cellspacing="0">
            <tr>
                <th>公司名称：</th>
                <td><input type="text" value="<?php echo $company['name'] ;?>" class="i_input" name="name" /></td>
            </tr>
            <tr>
                <th>公司邮箱：</th>
                <td><input type="text" value="<?php echo $company['email'] ;?>" class="i_input" name="email" /></td>
            </tr>
            <tr>
                <th>公司网址：</th>
                <td><input type="text" value="<?php echo $company['website'] ;?>" size="45" class="i_input" name="website" /></td>
            </tr>
            <tr>
                <th>公司地址：</th>
                <td>
                    <select name="province" id="province"></select>
                    <select name="city" id="city"></select>
                </td>
            </tr>
            <tr>
                <th>&nbsp;</th>
                <td>
                    <input id="editsubmit" type="button" value="添加" class="i_submit"/>
                    <span id="edit_return_message"></span>
                </td>
            </tr>
        </table>
    </form>
</div>
<script type="text/javascript">
    show_province('province', "<?php echo $company['province'] ;?>", 'city');
    show_city('city', "<?php echo $company['province'] ;?>", "<?php echo $company['city'] ;?>");
    $(function(){
        $("#editsubmit").click(function(){
            ajaxform('editform', 'edit_return_message');
        });
    });
</script>
<div id="siber_icon">
    <img src="template/default/image/g_manage_big.jpg"/>
</div>
<div class="clear"></div>
<div id="footer">
    对话中国版权所有
</div>
</div>
</body>
</html>